package com.atguigu.spzx.order.feign;

import com.atguigu.spzx.order.dto.OrderInfoDetailRespDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 * OrderFeignClinet
 * </p>
 *
 * @author flyduck
 * @since 2023/11/7
 */
@FeignClient(value = "spzx-order-service")
public interface OrderFeignClinet {

    @GetMapping("/api/order/orderInfo/auth/updateOrderStatusByOrderNo/{orderNo}/{orderStatus}")
    public void updateOrderStatus(@PathVariable(value = "orderNo") String orderNo ,
                                  @PathVariable(value = "orderStatus") Integer orderStatus);

    @GetMapping("/api/order/orderInfo/auth/getOrderInfoByOrderNo/{orderNo}")
    public OrderInfoDetailRespDto getOrderInfoByOrderNo(@PathVariable("orderNo") String orderNo);
}
